﻿using System.ComponentModel;

namespace MyOS.Models
{
    public class SystemInfoItemModel : INotifyPropertyChanged
    {
        private int _DiskCSize;

        private int _DiskDSize;
        private string _SystemName;

        public int DiskCRootSize { get; set; }

        public int DiskCBlockSize { get; set; }

        public int DiskCBlockCount { get; set; }

        public int DiskCRecordCount { get; set; }

        public int DiskCRootOffset { get; set; }

        public int DiskCFileStart { get; set; }

        public string DiskCTime { get; set; }

        public int DiskDRootSize { get; set; }

        public int DiskDBlockSize { get; set; }

        public int DiskDBlockCount { get; set; }

        public int DiskDRecordCount { get; set; }

        public int DiskDRootOffset { get; set; }

        public int DiskDFileStart { get; set; }

        public string DiskDTime { get; set; }


        public string Time { get; set; }

        public string Name
        {
            get => _SystemName;

            set
            {
                _SystemName = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Name"));
            }
        }

        public int DiskCSize
        {
            get => _DiskCSize;
            set
            {
                _DiskCSize = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("DiskCSize"));
            }
        }

        public int DiskDSize
        {
            get => _DiskDSize;
            set
            {
                _DiskDSize = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("DiskDSize"));
            }
        }


        public event PropertyChangedEventHandler PropertyChanged;
    }
}